package com.jiyinit.web.core.activiti.entity;

import com.jiyinit.core.framework.base.entity.BaseEntity;

import java.util.Date;

public class TabLeaveDealMindEntity extends BaseEntity {
    private Integer id;

    private String executionId;

    private String taskId;

    private String taskName;

    private Date createDate;

    private Integer dealUserid;

    private String dealMindInfo;

    private String status;

    private String isAgree;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getExecutionId() {
        return executionId;
    }

    public void setExecutionId(String executionId) {
        this.executionId = executionId == null ? null : executionId.trim();
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getDealUserid() {
        return dealUserid;
    }

    public void setDealUserid(Integer dealUserid) {
        this.dealUserid = dealUserid;
    }

    public String getDealMindInfo() {
        return dealMindInfo;
    }

    public void setDealMindInfo(String dealMindInfo) {
        this.dealMindInfo = dealMindInfo == null ? null : dealMindInfo.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getIsAgree() {
        return isAgree;
    }

    public void setIsAgree(String isAgree) {
        this.isAgree = isAgree == null ? null : isAgree.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TabLeaveDealMindEntity other = (TabLeaveDealMindEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExecutionId() == null ? other.getExecutionId() == null : this.getExecutionId().equals(other.getExecutionId()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getTaskName() == null ? other.getTaskName() == null : this.getTaskName().equals(other.getTaskName()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getDealUserid() == null ? other.getDealUserid() == null : this.getDealUserid().equals(other.getDealUserid()))
            && (this.getDealMindInfo() == null ? other.getDealMindInfo() == null : this.getDealMindInfo().equals(other.getDealMindInfo()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIsAgree() == null ? other.getIsAgree() == null : this.getIsAgree().equals(other.getIsAgree()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExecutionId() == null) ? 0 : getExecutionId().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getTaskName() == null) ? 0 : getTaskName().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getDealUserid() == null) ? 0 : getDealUserid().hashCode());
        result = prime * result + ((getDealMindInfo() == null) ? 0 : getDealMindInfo().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIsAgree() == null) ? 0 : getIsAgree().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", executionId=").append(executionId);
        sb.append(", taskId=").append(taskId);
        sb.append(", taskName=").append(taskName);
        sb.append(", createDate=").append(createDate);
        sb.append(", dealUserid=").append(dealUserid);
        sb.append(", dealMindInfo=").append(dealMindInfo);
        sb.append(", status=").append(status);
        sb.append(", isAgree=").append(isAgree);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}